<form action="/gliste/updateuser" method="post">
	<table>
		<thead>
			<tr>
				<th colspan="4">Details von ${request.gast?.vorname} ${request.gast?.nachname}</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td class="bold">Zusage</td>
				<td>
					<% if(request.gast.status != null && request.gast.status == 1){%>
			           <img title="Zusage" alt="Ja" src="/images/ja.jpg">
   					<% } else if(request.gast.status != null && request.gast.status == 2) {%>
     					<img title="Noch offen" alt="Nein" src="/images/fragezeichen.gif">
    	 			<% } else {%>
     					<img title="Absage" alt="Nein" src="/images/nein.jpg">
   					<% } %>
				</td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td class="bold">Vorname</td>
				<td>
				  <% if(request.gast?.vorname) {%>
				    <input type="text" name="vorname" value="${request.gast.vorname}" />
				  <% } else {%>
				    <input type="text" name="vorname" />
				  <% } %>
				</td>
				<td class="bold">Nachname</td>
				<td>
				 <% if(request.gast?.nachname) {%>
				    <input type="text" name="nachname" value="${request.gast.nachname}" />
				  <% } else {%>
				    <input type="text" name="nachname" />
				  <% } %>
				</td>
			</tr>
			<tr>
				<td class="bold">Straße</td>
				<td colspan="3">
				 <% if(request.gast?.strasse) {%>
				    <input class="breiter" type="text" name="strasse" value="${request.gast.strasse}" />
				  <% } else {%>
				    <input class="breiter" type="text" name="strasse" />
				  <% } %>
			   </td>
			</tr>
			<tr>
				<td class="bold">PLZ</td>
				<td>
				  <% if(request.gast?.plz) {%>
				    <input type="text" name="plz" value="${request.gast.plz}" />
				  <% } else {%>
				    <input type="text" name="plz" />
				  <% } %>
				</td>
				<td class="bold">Ort</td>
				<td>
				 <% if(request.gast?.ort) {%>
				    <input type="text" name="ort" value="${request.gast.ort}" />
				  <% } else {%>
				    <input type="text" name="ort" />
				  <% } %>
				</td>
			</tr>
			<tr>
				<td class="bold">Rolle</td>
				<td>
					<% request.listrole.each { item -> %>
						<% if(request.gast?.rolle == item.id) {%>
							${item.bezeichnung}
						<% } %>
					<% } %>
				</td>
				<td class="bold">Kategorie</td>
				<td>
					<% request.listkat.each { item -> %>
						 <% if(request.gast?.kategorie == item.id) {%>
						   ${item.bezeichnung}
						 <% } %>
					 <% } %>
				</td>
			</tr>
			<tr>
				<td class="bold">Anmerkung</td>
				<td colspan="3"> 
				<% if(request.gast?.anmerkung) {%>
				    <textarea class="breiter" name="anmerkung"  >${request.gast.anmerkung}</textarea>
				  <% } else {%>
				    <textarea class="breiter" name="anmerkung" ></textarea>
				  <% } %>
				  </td>
			</tr> 
		
			<tr>
		 		<td class="bold">Telefon</td>
			 	<td><input type="text" name="telefon" value="${request.telefon}"/></td>
			 	<td class="bold">Handy</td>
			 	<td><input type="text" name="handy" value="${request.handy}"/></td>
			</tr>
			<tr>
				<td class="bold">E-Mail</td>
				<td colspan="3"><input class="breiter" type="text" name="email" value="${request.email}"/></td>
			</tr>
			<tr>
				<td colspan="4"><hr/></td>
			</tr>
			<tr>
				<td></td>
				<td colspan="3">
					<input type="hidden" name="key" value="${com.google.appengine.api.datastore.KeyFactory.keyToString(request.gast.key)}" />
					<input class="buttonlogin" type="submit" value="Aktualisieren" />
				</td>
			</tr>
		</tbody>
	</table>
	<br/><br/>
	
</form>